package com.mic.jvm;

/**
 * Created by hy06 on 2018/2/23.
 */
public class JavaVMStackSOF {
    private int stackLength = -1;

    public void stackLeck() {
        stackLength++;
//        stackLeck();
    }

    public static void main(String[] args) {
        JavaVMStackSOF sof = new JavaVMStackSOF();
        try {
            sof.stackLeck();
        } catch (Throwable e) {
            System.out.println("stack length" + sof.stackLength);
            throw e;
        }
    }
}
